package com.woniuxy.cq.phrase3.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.cq.phrase3.common.Result;
import com.woniuxy.cq.phrase3.controller.form.ChangeUserRoleForm;
import com.woniuxy.cq.phrase3.controller.form.ProjectForm;
import com.woniuxy.cq.phrase3.controller.form.UserForm;
import com.woniuxy.cq.phrase3.controller.form.UserFormLogin;
import com.woniuxy.cq.phrase3.entity.Country;
import com.woniuxy.cq.phrase3.entity.Industry;
import com.woniuxy.cq.phrase3.entity.Role;

import java.util.List;


/**
 * 用户业务层
 * @author 胡八一
 * @date 2020/09/07 11:06
 */
public interface UserService {
    public void register(UserForm userForm);
    public Result login(UserFormLogin userFormLogin);
    public Result checkByUserName(String username);
    public String findRolesByUserId(Integer id);
    public void applicationProject(ProjectForm projectForm);
    List<Industry> getAllIndustry();
    List<Country> getAllCountry();
    void deleteUserById(Integer userId);
    int updateUserByUserForm(UserForm userForm);
    PageInfo<UserForm> queryAllByPage(UserForm userForm);
    List<Role> getAllRole();
    void changeRole(ChangeUserRoleForm changeUserRoleForm);
}
